<!--
 * @Author: zhangyang
 * @Date: 2022-05-29 15:07:39
 * @LastEditTime: 2022-05-30 12:04:58
 * @Description: 
-->
<template>
  <div class="loading" :tip="text || '加载中...'" :spinning="loading">
    <slot />
  </div>
</template>
<script lang="ts">
export default defineComponent({
  name: 'YoungLoading'
});
</script>
<script setup lang="ts">
defineProps<{
  text?: string
  loading: boolean
}>();
</script>
<style scoped>
.loading {
  padding: 20px;
  display: block;
}

.ant-spin-nested-loading {
  position: inherit;
}
.ant-spin-nested-loading .ant-spin-container {
  position: inherit;
}
</style>
